package com.example.xwcommon.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.xwcommon.entity.Attention;
import com.example.xwcommon.service.fallback.FallBackAttentionServiceImpl;
import com.example.xwcommon.vo.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="xw-attention",fallback = FallBackAttentionServiceImpl.class)
public interface AttentionService {
    @RequestMapping("/attention/addAttention")
    Response<Integer> addAttention(String attentionName, String userName);

    @RequestMapping("/attention/removeAttention")
    Response<Integer> removeAttention(Integer attentionId);

    @RequestMapping("/attention/getAttentionById")
    Response<Attention> getAttentionById(Integer attentionId);


    @RequestMapping("/attention/getAttentionListByLoginName")
    Response<Page<Attention>> getAttentionListByLoginName(Integer pageNum, Integer pageSize, String loginName);
}
